using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN BinaryDataEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: BinaryDataEntity</para>
	/// <para>Description: ClassBinaryDataEntity store data of table BinaryData</para>
	///</summary>

	[Serializable]
	public partial class BinaryDataEntity{


		private bool _InternalChangedIsNullBinaryDataId=true;
		private bool _IsNullBinaryDataId=true;
		private bool _InternalChangedIsNullData=true;
		private bool _IsNullData=true;
		private bool _InternalChangedIsNullFileName=true;
		private bool _IsNullFileName=true;
		private int _BinaryDataId;
		private Byte[] _Data;
		private string _FileName;
		[XmlElement(ElementName = "IsNullBinaryDataId")]
		public bool IsNullBinaryDataId{
			get{return _IsNullBinaryDataId;}
			set{if(!_InternalChangedIsNullBinaryDataId)_IsNullBinaryDataId=value;}
		}
		[XmlElement(ElementName = "IsNullData")]
		public bool IsNullData{
			get{return _IsNullData;}
			set{if(!_InternalChangedIsNullData)_IsNullData=value;}
		}
		[XmlElement(ElementName = "IsNullFileName")]
		public bool IsNullFileName{
			get{return _IsNullFileName;}
			set{if(!_InternalChangedIsNullFileName)_IsNullFileName=value;}
		}
		[XmlElement(ElementName = "BinaryDataId")]
		public int BinaryDataId{
			get{return _BinaryDataId;}
			set{
				_BinaryDataId=value;
				if(_BinaryDataId!=null){
					_IsNullBinaryDataId=false;
					_InternalChangedIsNullBinaryDataId=true;
				}
			}
		}
		[XmlElement(ElementName = "Data")]
		public Byte[] Data{
			get{return _Data;}
			set{
				_Data=value;
				if(_Data!=null){
					_IsNullData=false;
					_InternalChangedIsNullData=true;
				}
			}
		}
		[XmlElement(ElementName = "FileName")]
		public string FileName{
			get{return _FileName;}
			set{
				_FileName=value;
				if(_FileName!=null){
					_IsNullFileName=false;
					_InternalChangedIsNullFileName=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END BinaryDataEntityBase*****************************************/
	/*****************************************************************************************************/
}

